<?php
/* @var $this SelisteController */
/* @var $model Seliste */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'seliste-pass-form',
	'htmlOptions'=>array('class'=>'form-horizontal'),
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model,NULL,NULL,array("class"=>"alert alert-danger")); ?>

	<div class="form-group<?php if ($model->getErrors('pwd')) echo " has-error";?>">
		<?php echo $form->labelEx($model,'pwd',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-10"><?php echo $form->passwordField($model,'pwd',array("class"=>"form-control","placeholder"=>"Saisir le nouveau mot de passe",'value'=>"",'maxlength'=>255)); ?></div>
	</div>
	
	<div class="form-group<?php if ($model->getErrors('pwd2')) echo " has-error";?>">
		<?php echo $form->labelEx($model,'pwd2',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-10"><?php echo $form->passwordField($model,'pwd2',array("class"=>"form-control","placeholder"=>"Confirmer le nouveau mot de passe",'value'=>"",'maxlength'=>255)); ?></div>
	</div>

	<div class="form-group">
		<div class="col-lg-offset-2 col-lg-10">
			<?php if ($compte) {?>
				<?php echo CHtml::submitButton('Modifier le mot de passe',array("class"=>"btn btn-primary")); ?>
				<?php echo CHtml::link("Annuler la modification",array('seliste/compte'),array('class'=>"btn btn-sm btn-info"));	?>
			<?php } else {?>
				<?php echo CHtml::submitButton('Modifier le mot du passe du séliste',array("class"=>"btn btn-primary")); ?>
				<?php echo CHtml::link("Annuler la modification",array('seliste/admin'),array('class'=>"btn btn-sm btn-info"));	?>
			<?php }?>
		</div>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->